#!usr/bin/python
# -*- coding: UTF-8 -*-

import easygui as g
import sys
while 1:
    g.msgbox('哟,欢迎进入第一个界面小游戏(#^.^#)')      #显示一个对话框

    msg = '请问你希望在python工作室学习到什么知识呢？'
    title = '小游戏互动'
    choices = ['谈恋爱', '编程', 'ooxx', '琴棋书画']   #显示一个choicebox对话框

    choice = g.choicebox(msg, title, choices)

    # note that we convert choice to string, in case
    # the user cancelled the choice, and we got None.
    g.msgbox('您的选择是：' + str(choice), '结果')

    msg = '你希望重新开始小游戏吗？'
    title = '请选择'

    if g.ccbox(msg, title):     #Show a Continue/Cancel dialog
        pass    # user chose Continue
    else:
        sys.exit(0)    # user chose Cancel


#'''
#C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\easygui.py
#找到这个文件,notepad++打开，定位到1060行，找到root_width    = int((screen_width * 0.8))
#可以修改宽度
#找到180行PROPORTIONAL_FONT_FAMILY可以修改字体
#'''



